package com.exposit.smarthouse.dao.impl;


import com.exposit.smarthouse.dao.*;
import com.exposit.smarthouse.obj.impl.*;

public class EnvironmentDaoImpl extends DaoImpl<EnvironmentEntity> implements EnvironmentDao
{
    private Dao<EnvironmentEntity> dao;

    public void setDao(Dao<EnvironmentEntity> dao) {
        this.dao = dao;
    }

    @Override
    public void saveOrUpdate(EnvironmentEntity entity)
    {
        dao.saveOrUpdate(entity);
    }

    @Override
    public void delete(EnvironmentEntity entity)
    {
        dao.delete(entity);
    }

    @Override
    public EnvironmentEntity findByIdentity(Long identity)
    {
        return dao.findByIdentity(identity);
    }
}
